package com.gitee.wsl.android.ui.spannable.span

import android.graphics.Shader
import android.text.TextPaint
import android.text.style.CharacterStyle
import android.text.style.UpdateAppearance

class ShaderSpan private constructor(private val mShader: Shader) : CharacterStyle(), UpdateAppearance {
    override fun updateDrawState(tp: TextPaint) {
        tp.shader = mShader
    }
}